/**
 * 本方法为摸牌起手跑
 * @param who_uid        谁跑的
 * @param card_number    跑的什么数字（非跑牌人该数字是0）
 * @param is_chong       是否重跑
 */
function draw_play_mopao_ziji_qipao( who_uid , card_number , is_chong ){
    delete_all_bg();
    /*******************************************************************************************************************/
    //如果摸牌起跑者是自己
    if( who_uid == PB_USER_UID && card_number != 0 ){
        //将牌面上的这个被摸出来的牌缩小然后移动到本方的墩上
        PL_Room_Play.MOPAI_BG.setScale(0.7);
        PL_Room_Play.MOPAI_BG2.setScale(0.7);
        PL_Room_Play.MOPAI_BG2.setLocalZOrder(0);PL_Room_Play.MOPAI_BG.setLocalZOrder(0);
        PL_Room_Play.MOPAI_BG2.runAction( cc.MoveTo.create( 0.3 , cc.p(  PL_Room_Play.realy_size.width / 2 , -500 ) ) );
        PL_Room_Play.MOPAI_BG.runAction( cc.MoveTo.create( 0.3 , cc.p(  PL_Room_Play.realy_size.width / 2 , -500 ) ) );
        //删除手牌中存在的这3张提牌
        for( var i = 0 ; i <= 2 ; i++ ) {
            for (var y = 1; y < PL_Room_Play.PPP_pai.length; y++) {
                if (PL_Room_Play.PPP_pai[y].paihao == card_number) {
                    PL_Room_Play.removeChild(PL_Room_Play.PPP_pai[y]);
                    DUN_PS[PL_Room_Play.PPP_pai[y].dijidun - 1]--;//牌墩上的牌数-1
                    PL_Room_Play.PPP_pai.splice(y, 1);
                    break;
                }
            }
        }
        //移动3张背景牌 + 1张号码牌
        for( var i = 0 ; i <= 3 ; i++ ){
            //小牌移动
            if( i <= 2 ){
                var temp     = cc.Sprite.create('res/cd_huxiBG.png');
            }else{
                xiaopai_name = card_number <= 10 ? 'ss' + card_number : 's' + (card_number-10);
                var temp     = cc.Sprite.create('res/pai/xp/' + xiaopai_name + '.png');
            }
            temp.x       = PL_Room_Play.realy_size.width / 2;
            temp.y       = 100;
            PL_Room_Play.addChild( temp );
            temp.runAction( cc.MoveTo.create( 0.3 , cc.p(  40 * ZJ_XP_COUNT , 42*(i) - 500 + LB_XP_HEIGHT ) ) );
            MISCE.push( temp );//添加杂项
        }
        ZJ_XP_COUNT++;
        //理牌
        draw_play_paireset();
    }
    //移动被摸出来的这个小牌
    PL_Room_Play.removeChild( PL_Room_Play.MOPAI_BG );
    //如果是下家摸牌起跑
    if( who_uid == ROOM_WS_XJ ){
        //移动3张背景牌 + 1张号码牌
        for( var i = 0 ; i <= 3 ; i++ ){
            var temp     = cc.Sprite.create('res/cd_huxiBG.png');
            temp.x       = PL_Room_Play.realy_size.width - 250;temp.y       = PL_Room_Play.realy_size.height / 2;
            PL_Room_Play.addChild( temp );
            temp.runAction( cc.MoveTo.create( 0.3 , cc.p(  PL_Room_Play.realy_size.width -  40 * XJ_XP_COUNT , SMALL_PAI_H * i + RB_XP_HEIGHT ) ) );
            MISCE.push( temp );//添加杂项
        }
        XJ_XP_COUNT++;
    }
    //如果是上家摸牌起跑
    if( who_uid == ROOM_WS_SJ ){
        //移动3张背景牌 + 1张号码牌
        for( var i = 0 ; i <= 3 ; i++ ){
            var temp     = cc.Sprite.create('res/cd_huxiBG.png');
            temp.x       = 250;temp.y       = PL_Room_Play.realy_size.height - 250;
            PL_Room_Play.addChild( temp );
            temp.runAction( cc.MoveTo.create( 0.2 , cc.p(  40 * SJ_XP_COUNT , PL_Room_Play.realy_size.height - TOP_LEFT_XP_HEIGHT -  SMALL_PAI_H * i ) ) );
            MISCE.push( temp );//添加杂项
        }
        SJ_XP_COUNT++;
    }
    //如果是对家摸牌起跑
    if( who_uid == ROOM_WS_DM ){
        //移动3张背景牌 + 1张号码牌
        for( var i = 0 ; i <= 3 ; i++ ){
            var temp     = cc.Sprite.create('res/cd_huxiBG.png');
            temp.x       = PL_Room_Play.realy_size.width - 250;temp.y       = PL_Room_Play.realy_size.height - 250;
            PL_Room_Play.addChild( temp );
            temp.runAction( cc.MoveTo.create( 0.2 , cc.p(  PL_Room_Play.realy_size.width -  40 * DM_XP_COUNT , PL_Room_Play.realy_size.height - TOP_LEFT_XP_HEIGHT -  SMALL_PAI_H*i ) ) );
            MISCE.push( temp );//添加杂项
        }
        DM_XP_COUNT++;
    }
    //进行trip操作
    show_tripAND_sound( 'pao' , who_uid , is_chong );
}